<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<script type="text/javascript">
    $(".wrapper").css("background-color", "white");
</script>

<c:choose>
    <c:when test="${isAdmin}">

        <p>Новости:</p>

        <div>
            <display:table name="newsList" id="news">
                <display:column>
                    <c:out value='${news.header}'/>
                </display:column>
            </display:table>
        </div>

    </c:when>
    <c:otherwise>
        <p> У вас нет доступа! </p>
    </c:otherwise>
</c:choose>